#!/bin/bash

read -t 5 -p "请输入姓名：" NAME
if [ $NAME ]
then
	echo "你输入的姓名为$NAME"
else
	echo ""
	echo "等待超时，程序退出"
fi

